package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.co.BaseCo;
import com.engineering.elink.domain.Notify;

public interface NotifyMapper {
    int deleteByPrimaryKey(Integer notifyId);

    int insert(Notify record);

    int insertSelective(Notify record);

    Notify selectByPrimaryKey(Integer notifyId);

    int updateByPrimaryKeySelective(Notify record);

    int updateByPrimaryKey(Notify record);

	List<Map<String, Object>> selectList(@Param("co")BaseCo co, @Param("userId")String userId);

	int  selectCount(@Param("userId")String userId);

	int selectUnreadCount(@Param("userId")String userId);

	Notify  selectInfo(@Param("notifyId")int notifyId);
	
	void updateReadStatusByNotifyId(@Param("notifyId")int notifyId);

	int  del(@Param("notifyId")String notifyId, @Param("userId")String userId);

	int clearNotify(@Param("userId")String userId);
}